package adapter;

import adapter.abstract_animals.Cat;
import adapter.abstract_animals.Dog;
import adapter.abstract_animals.adapter.Adapter;
import adapter.animals.ConcreteCat;
import adapter.animals.ConcreteDog;

public class Client {
    public static void main(String[] args) {
        Adapter adapter = new Adapter(new ConcreteDog());
        adapter.setCat(new ConcreteCat());
        Cat cat = adapter;
        Dog dog = adapter;
        cat.cry();
        cat.catchMouse();
        dog.wang();
        dog.action();

    }
}
